package com.panshi.qa.provider.modules.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ThSearch对象", description="")
public class ThSearch implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "搜索表ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "文章,问题ID")
    private Long tid;

    @ApiModelProperty(value = "文章,问题标题(关键字)")
    private String title;

    @ApiModelProperty(value = "文章简介")
    private String introduce;

    @ApiModelProperty(value = "10-文章,20问题")
    private String type;

    @ApiModelProperty(value = "文章,问题ID")
    private Long userId;

    @ApiModelProperty(value = "评论量/回答量")
    private Integer  count;

    @ApiModelProperty(value = "阅读量")
    private Integer readNum;

    @ApiModelProperty(value = "收藏量")
    private Integer collectNum;

    @ApiModelProperty(value = "发布时间")
    @TableField(fill = FieldFill.INSERT)
    private Date publishTime;

    @ApiModelProperty(value = "图片地址")
    private String photoPath;

    @ApiModelProperty(value = "牙齿类型")
    private String typeYa;

}
